package cn.easyshipping.cloud.config.support;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: bwl
 * created on: 2020/4/13 9:16 下午
 * description:自定义配置
 */
@Configuration
public class CustomWebConfigure implements WebMvcConfigurer {

    @Resource
    private BaseParamsArgumentResolver baseParamsArgumentResolver;

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(baseParamsArgumentResolver);
    }
}


